package tomcat.connector;

import java.io.*;

public class DynamicResponse extends Response implements ServletResponse{


    public DynamicResponse(OutputStream outputStream) {
        super(outputStream);
    }

    // 对 out 进行数据写入
    @Override
    public PrintWriter getWriter() throws IOException{
        // 写入数据可以自动被 flush
        PrintWriter printWriter = new PrintWriter(outputStream, true);
        return printWriter;
    }
}
